from django.shortcuts import render,HttpResponseRedirect

# Create your views here.
def index(request):
    is_login = request.session.get("is_login")
    username = request.session.get("username")
    if not is_login:
        msg={'Login_msg':'未登录'}
    else:
        msg={'Login_msg':'已登陆'}
    return render(request,'index.html')

def toindex(request):
     # return render(request, 'tool/cartoon.html')
    return HttpResponseRedirect("/news")

def team(request):
    return render(request, 'team.html')

